var requestLogTable;

function initRequestLog() {
	requestLogTable = right_requestLog_layout.attachGrid();
	requestLogTable.setIconsPath(contextPath + '/resources/common/js/dhtmlx_std_full/imgs/');
	
	requestLogTable.setHeader('METHOD, URL, RESULT, TIME');
	requestLogTable.setInitWidths('70, 90, 60, 115');
	requestLogTable.setColAlign('left, left, left, left');
	requestLogTable.setColSorting('int, int, str, date');
	requestLogTable.init();
}

function createRequestLog() {
	requestLogTable.clearAll();
	requestLogTable.addRow(1, ['GET', '/channel', 'OK', '2014-05-28 11:00:00'], 1);
	requestLogTable.addRow(2, ['POST', '/channel', 'OK', '2014-05-28 12:00:30'], 2);
	requestLogTable.addRow(3, ['GET', '/channel', 'NOK', '2014-05-28 12:05:00'], 3);
	requestLogTable.addRow(4, ['POST', '/channel', 'OK', '2014-05-28 15:25:30'], 4);
}